package com.hmall.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hmall.common.client.UserClient;
import com.hmall.common.dto.Address;
import com.hmall.order.mapper.OrderLogisticsMapper;
import com.hmall.order.pojo.OrderLogistics;
import com.hmall.order.service.IOrderLogisticsService;
import com.hmall.order.service.IOrderService;
import com.hmall.order.vo.ResultParams;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author Azer
 * @LOVE,,,
 * @Date 2021/11/8 20:28
 */
@Service
public class OrderLogisticsService extends ServiceImpl<OrderLogisticsMapper, OrderLogistics> implements IOrderLogisticsService {
//    @Autowired
//    private UserClient userClient;
//
//    @Autowired
//    private IOrderService orderService;

//    @Override
//    public void getOrderLogistics(ResultParams params) {
//
//        OrderLogistics orderLogistics=new OrderLogistics();
//        Address address = userClient.findAddressById(params.getAddressId());
//        Long orderId = orderService.getOrder(params);
//        orderLogistics.setOrderId(orderId);
//        orderLogistics.setContact(address.getContact());
//        orderLogistics.setMobile(address.getMobile());
//        orderLogistics.setProvince(address.getProvince());
//        orderLogistics.setCity(address.getCity());
//        orderLogistics.setStreet(address.getStreet());
//        orderLogistics.setTown(address.getTown());
//        this.save(orderLogistics);
//    }
}
